package smartlifev30.com.sdk.bean.request;

import smartlifev30.com.sdk.net.baiwei.protocol.Body;

/**
 * Created by tys on 2018/8/13.
 */

public class AddTimerRequest extends Body {
    private Timer timer;

    public Timer getTimer() {
        return timer;
    }

    public void setTimer(Timer timer) {
        this.timer = timer;
    }

    public class Timer {

        private String name;

        /**
         * 0: once  1 : weekly”,
         */
        private String type;

        /**
         *
         */
        private String state;

        /**
         * 2015-11-12
         */
        private String date;

        /**
         * 18:00:00
         */
        private String time;

        /**
         * 从周日-周六01111111,第7位不用
         */
        private int repeat;

        public InstructList instruct_list;

        public class InstructList {
            /**
             * 0 : device , 1: scene”
             */
            private int type;

            private int device_id;

            private int scene_id;

            private Operation operation;

            public class Operation {
                private String state;
                private String color;
                private String mode;
                /**
                 * 当为红外或数据透传类设备时
                 */
                private String cmd;

                public String getState() {
                    return state;
                }

                public void setState(String state) {
                    this.state = state;
                }

                public String getColor() {
                    return color;
                }

                public void setColor(String color) {
                    this.color = color;
                }

                public String getMode() {
                    return mode;
                }

                public void setMode(String mode) {
                    this.mode = mode;
                }

                public String getCmd() {
                    return cmd;
                }

                public void setCmd(String cmd) {
                    this.cmd = cmd;
                }
            }

            public int getType() {
                return type;
            }

            public void setType(int type) {
                this.type = type;
            }

            public int getDevice_id() {
                return device_id;
            }

            public void setDevice_id(int device_id) {
                this.device_id = device_id;
            }

            public int getScene_id() {
                return scene_id;
            }

            public void setScene_id(int scene_id) {
                this.scene_id = scene_id;
            }

            public Operation getOperation() {
                return operation;
            }

            public void setOperation(Operation operation) {
                this.operation = operation;
            }
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public String getState() {
            return state;
        }

        public void setState(String state) {
            this.state = state;
        }

        public String getDate() {
            return date;
        }

        public void setDate(String date) {
            this.date = date;
        }

        public String getTime() {
            return time;
        }

        public void setTime(String time) {
            this.time = time;
        }

        public int getRepeat() {
            return repeat;
        }

        public void setRepeat(int repeat) {
            this.repeat = repeat;
        }

        public InstructList getInstruct_list() {
            return instruct_list;
        }

        public void setInstruct_list(InstructList instruct_list) {
            this.instruct_list = instruct_list;
        }
    }
}